package com.zpark.mapper;

import com.zpark.pojo.Person;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 在持久层继承通用Mapper接口
 */
public interface IPersonMapper extends Mapper<Person> {

    // 自定义接口方法
    @Select("select id, username, password " +
            "from person limit #{start }, #{num}}")
    List<Person> selectLimit(Integer start, Integer num);

}
